from django.contrib import admin

# Register your models here.
from .models import sys_maintain
from import_export import resources
from import_export.admin import ImportExportModelAdmin, ImportExportActionModelAdmin

class ProxyResource(resources.ModelResource):
    class Meta:
        model = sys_maintain


# Register your models here. 
@admin.register(sys_maintain)

#class RecordAdmin(admin.ModelAdmin):
#class RecordAdmin(ImportExportModelAdmin):

class ResourceAdmin(ImportExportActionModelAdmin):
	resources_class =ProxyResource

	list_display = ('id','name')
	list_per_page = 10 